CUR_DIR := $(shell pwd)
XML2BIN_64DIR = $(CUR_DIR)/tools/64bit_xml2bin
XML2BIN_32DIR = $(CUR_DIR)/tools/32bit_xml2bin
MIDDLEWARE_DIR := $(CUR_DIR)/../..
include $(MIDDLEWARE_DIR)/base.mak

LIB_FILE := $(shell find $(CUR_DIR) -name '*.a')
HEADER_FILE := $(shell find $(CUR_DIR) -name '*.h')

.PHONY: all clean install

all:   $(LIB_FILE) $(HEADER_FILE)
install: all
	$(AT)mkdir -p $(XML2BIN_64DIR)
	$(AT)mkdir -p $(XML2BIN_32DIR)
	$(AT)chmod 0777 $(XML2BIN_64DIR) -fR
	$(AT)chmod 0777 $(XML2BIN_32DIR) -fR
	$(AT)mkdir -p $(OUT_LIB_DIR)
	$(AT)mkdir -p $(OUT_HEADER_DIR)
	$(AT)cp -rf $(LIB_FILE) $(OUT_LIB_DIR)/
	$(AT)cp -rf $(HEADER_FILE) $(OUT_HEADER_DIR)/
